package org.jeecg.modules.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 线程记录
 * @Author: jeecg-boot
 * @Date:   2021-12-28
 * @Version: V1.0
 */
@Data
@TableName("zhxf_thread_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="zhxf_thread_record对象", description="线程记录")
public class CustomThreadRecord implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**标识 更新统一部门为dept，*/
	@Excel(name = "标识 更新统一部门为dept，", width = 15)
    @ApiModelProperty(value = "标识 更新统一部门为dept，")
    private String threadType;
	/**线程名称*/
	@Excel(name = "线程名称", width = 15)
    @ApiModelProperty(value = "线程名称")
    private String threadName;
	/**0 正在执行 1执行完毕*/
	@Excel(name = "0 正在执行 1执行完毕", width = 15)
    @ApiModelProperty(value = "0 正在执行 1执行完毕")
    private Integer threadState;
    /**线程执行时间*/
    @Excel(name = "线程执行时间", width = 15)
    @ApiModelProperty(value = "线程执行时间")
    private String threadTime;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;

    public CustomThreadRecord() {
    }

    public CustomThreadRecord(String threadType, String threadName, Integer threadState) {
        this.threadType = threadType;
        this.threadName = threadName;
        this.threadState = threadState;
    }
}
